.gomoku-game {
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;

  .game-card {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;

    .ant-card-head {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 8px 8px 0 0;

      .ant-card-head-title {
        color: white;
        font-size: 24px;
        font-weight: bold;
      }
    }

    .ant-card-body {
      padding: 24px;
    }
  }

  .game-status {
    text-align: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
  }

  .board-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .board {
    display: inline-block;
    border: 3px solid #8b4513;
    background: #deb887;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .board-row {
    display: flex;
  }

  .cell {
    width: 32px;
    height: 32px;
    border: 1px solid #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: all 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    &.clickable {
      cursor: pointer;

      &:hover {
        background: rgba(0, 255, 0, 0.2);
        transform: scale(1.05);
      }
    }

    &.player {
      background: rgba(0, 255, 0, 0.1);
    }

    &.ai {
      background: rgba(255, 0, 0, 0.1);
    }
  }

  .piece {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pieceDrop 0.3s ease-out;
  }

  .player-piece {
    background: radial-gradient(circle at 30% 30%, #fff, #000);
    border: 2px solid #333;
  }

  .ai-piece {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #cc0000);
    border: 2px solid #990000;
  }

  @keyframes pieceDrop {
    0% {
      transform: translateY(-20px);
      opacity: 0;
    }
    50% {
      transform: translateY(-5px);
      opacity: 0.8;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 10px;

    .game-card {
      .ant-card-body {
        padding: 16px;
      }
    }

    .cell {
      width: 24px;
      height: 24px;
    }

    .piece {
      width: 18px;
      height: 18px;
    }

    .board-container {
      padding: 10px;
    }
  }

  @media (max-width: 480px) {
    .cell {
      width: 20px;
      height: 20px;
    }

    .piece {
      width: 16px;
      height: 16px;
    }
  }
}

// 统计卡片样式
.ant-statistic {
  .ant-statistic-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
  }

  .ant-statistic-content {
    font-size: 20px;
    font-weight: bold;
  }
}

// 按钮组样式
.ant-space {
  .ant-btn {
    border-radius: 6px;
    font-weight: 500;

    &.ant-btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;

      &:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
      }
    }

    &:not(.ant-btn-primary) {
      border-color: #d9d9d9;

      &:hover {
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }
    }
  }
}
